Adds support for using any() in returns
Properly handles function calls with nil values