check if key is null