Can these checks be extracted into a "validate" method for clarity?