Safer deep object check