Refactor the #valid? method.