Check method existence rather than Ruby version