   { JUser } = koding.models
   { minLength, maxLength } = JUser.getValidUsernameLengthRange()
 
-  if minLength <= username?.length <= maxLength
-  then yes
-  else no
-
+  return minLength <= username?.length <= maxLength
 
 
 module.exports = {
   sendApiError
   sendApiResponse
+  checkApiAvailability
   isUsernameLengthValid
-  checkApiAvailability
   isSuggestedUsernameLengthValid
+
+  SUGGESTED_USERNAME_MIN_LENGTH
+  SUGGESTED_USERNAME_MAX_LENGTH
 }
 

errors = require './errors'
koding = require '../../bongo'

sendApiError = (res, error) ->


    return callback null


isSuggestedUsernameLengthValid = (suggestedUsername) ->

  return SUGGESTED_USERNAME_MIN_LENGTH <= suggestedUsername?.length <= SUGGESTED_USERNAME_MAX_LENGTH


isUsernameLengthValid = (username) ->
