inlined IsSurname method