enhance InlineFunction to be able to optionally return