Refactoring __check_type
Attempt to fix verbose bug