checks for null in areasearch