avoid comparing with None value