Stop validating like this — there’s a cleaner way

You’ve written this. Everyone has.