replaced respond_to?(sym) with respond_to?(sym, true)