Added code cleaner to verify that the instanceof statement receives a correct value