check if the instance method exists before attempting to call it