 persistUser = (obj, callback) ->
   if obj then user = obj # Replace loaded user.
   persist USER_PATH, user, callback
-
-
-# Returns true if a request to the Pixabay API was successful.
-#
-# @param [Object] error any error returned with the response
-# @param [Object] body the body of the response
-#
-isSuccessful = (error, body) ->
-  !error \
-  && body \
-  && body.hits \
-  && body.hits instanceof Array \
-  && body.hits.length > 0
 
 
 # Downloads an image.

                  + ' in to source control.' # Project setup success!


# Walks the user through initializing their user file.
#
auth = () ->

    if err || exists
      callback err, exists # Folder exists already, or error.
    else
      ask "Doesn't look like the #{dir} directory exists, create it? (y/n) ", \
        (answer) ->
          if yn answer # Create directory? Yes or no.
            mkdirp dir, (err) ->
