#718 - Fixing the if clause.
In the older implementation if the property key was absent, the type casting to String/Boolean in the else clause would have thrown an exception.