Implemented proper checkInstance