safer null protection