and it's only called in 1 place, so inline the check