check if baseElement equals to null