checking for responds_to variable