         editor = atom.workspace.getActiveEditor()
         unless editor.getGrammar().scopeName is 'text.html.php' or editor.getGrammar().scopeName is 'source.php'
             alert ('this is not a PHP file')
+            return
 
         data = @parse()
-        # console.log(data)
         variables = variables || data.variables
         functions = data.functions
 

        editor = atom.workspace.getActiveEditor()
        unless editor.getGrammar().scopeName is 'text.html.php' or editor.getGrammar().scopeName is 'source.php'
            alert ('this is not a PHP file')

        data = @parse()
        # console.log(data)

        editor = atom.workspace.getActiveEditor()
        unless editor.getGrammar().scopeName is 'text.html.php' or editor.getGrammar().scopeName is 'source.php'
            alert ('this is not a PHP file')
            return

        data = @parse()
        variables = variables || data.variables
        functions = data.functions

        cw = new TemplateManager(functions)

