Prevent exceptions being thrown for .valid?