Return nil if anObject is empty.