null checks on lower and upper bounds