Added isLocalVarPreviouslyDeclared method