Check in the object function, not the global