Checking if min/max times are undefined instead of just falsey, because a value of 0 is valid.