Added checking for different return types for reflective nodes