     return msg.send {room: msg.message.user.name}, "`#{projname}` env `#{ekey}` unset."
 
   robot.respond /tf env ([^\s]+)(?:\slist)?$/i, (msg) ->
-    return unless isAuthorized robot, msg
-
-    projname = msg.match[1].replace /\//, "_"
-
-    unless fs.existsSync("#{basepath}/#{projname}")
-      return msg.send {room: msg.message.user.name}, "Invalid project name: `#{projname}`"
+    projname = msg.match[1].replace /\//, "_"
+    return unless isAuthorized robot, msg
+    return if fileMissingSendAndReturnTrue msg, "#{basepath}/#{projname}", "Invalid project name: `#{projname}`"
 
     brainloc = "hubot-tf_#{projname}"
     localstorage = JSON.parse(robot.brain.get brainloc) or {}

        msg.send {room: msg.message.user.name}, "```\n#{stdout}\n```"

  robot.respond /tf (get) ([^\s]+)$/i, (msg) ->
    return unless isAuthorized robot, msg

    action = msg.match[1]
    projname = msg.match[2].replace /\//, "_"

    unless fs.existsSync("#{basepath}/#{projname}")
      return msg.send {room: msg.message.user.name}, "Invalid project name: `#{projname}`"

    exec "cd #{basepath}/#{projname}; terraform #{action} -no-color", (error, stdout, stderr) ->
      if stderr

    return msg.send {room: msg.message.user.name}, dir.join "\n"

  robot.respond /tf remote ([^\s]+)$/i, (msg) ->
    projname = msg.match[1].replace /\//, "_"
    return unless isAuthorized robot, msg
    return if fileMissingSendAndReturnTrue msg, "#{basepath}/#{projname}", "Invalid project name: `#{projname}`"

    exec "cd #{basepath}/#{projname} ; git remote -v", (error, stdout, stderr) ->
      if stderr
