'isinstance()' is used instead 'type() is .'