add check for other null objects