Simple check for valid range