Fix an incorrect handing of false values

Since the previous check looked at the property values rather than whether a key existed