simplify null guard