title: java.lang.String cannot be cast to clojure.lang.IFn
body: <p>I am trying to add some data into app engine datastore. This is my function</p>
  
  <pre><code>(defn createUser [email phone roleId status]
    (println (db/isIdExist "users" "email" email))
    (if (db/isIdExist "users" "email" email) 
      (str "false")
      ((db/addUser email phone roleId status) (str "true"))))
  </code></pre>
  
  <p>Here I want to print false in body according to the value of <code>isIdExist</code> function (which returns true if email already exists else false) now when I run this, If <code>isIdExist == true</code> then it prints false but when <code>isIdExist == false</code> it adds the value in datastore but gives this error. Can someone please help why it is happening and what concept of clojure am I missing here? Thanks</p>