Got it.  I would consider either including a comment to that effect, or moving it into the if block that enforces that restriction, or both.  Not a show stopper, but it would help the next reader.