Removed accidentally duplicated valid? method.