private boolean checkReturn(Node node, String scope){
		if (node.getClass() ==  Block.class) {
			LinkedList<Node> bl = ((Block)node).getContent();
			for (Node n : bl) {
				if(checkReturn(n, scope))
					return true;
			}
			return false;
		} else if (node.getClass() == ReturnStatement.class) {
			return true;
		} else if (node.getClass() == IfStatement.class) {
			Node nIf = ((IfStatement)node).getBlockIf();
			Node nElse = ((IfStatement)node).getBlockElse();
			if (nElse != null) {
				if (checkReturn(nIf, scope) && checkReturn(nElse, scope)) {
					return true;
				}
				else {
					return false;
				}
			}else {
				return false;
			}
		}
		return false;
	}