If statement for home range with only 1 polygon

An if statement that differentiates between home range with one polygon
and those with many. No need to look for hole if there is only one
polygon defined.