Two versions of private method contactExists
getContacts method written