check if view was null