check nil dimension