Adding null check for returned perspective