public boolean containsVariable(String variable) {
    return declarations().stream().anyMatch(decl -> decl.getName().equals(variable));
  }
Returns true if this contains a variable declaration for {@code variable}.
planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/expression/ScriptEnvironment.java