bool isEmailFresh(int? userId) { if (userId == null) { throw RemoteStatusException(RemoteStatus.USER_ID_MANDATORY); } if (userId == 1) return true; return false; }