Check to see if the object has a click method before calling it