used isNaN to check if an object is an instance/resource or attributes