fixed check for max age to detect non passed value thus allow 0

The falsey check was not allowing 0 to be passed.