add docstring to clojure isValid