added error checking when user has no folders