null-check in private_contains