users.isEmpty() || users == null
Swap these.
users == null || users.isEmpty()
You want to evaluate null BEFORE calling isEmpty() on a potentially null variable.