fix checking methods in ruby 1.9