public bool CheckEmailAddress(string email, int length) { if (CheckEntryLength(email, length)) { var user = _repository.GetUserByEmail(email); return(user == null); } _pageService.DisplayAlert("Invalid email address!", $"Please, check email address. Length should be less than {length}", "OK"); return(false); }