check the type in isProp