This could be shortened by doing:

`isUserNameAvailable() ? ...`