Minor tweak to defineProperty check