Is this checking a method inside of an object?