[squash] Move users DB check into its own fun

The chain of orelse statements combined with the indentation was
pretty hard to read. This commit moves the checks into their own
function and uses lists:any (which also shortcircuits).
1 file changed
tree: db621b6775bf5f4d9dc9c36a9db5c621c3dbc2ee
  1. include/
  2. priv/
  3. src/
  4. test/
  5. .gitignore
  6. rebar.config.script