Android - Is this Code correct?
<p>is the below mentioned code correct</p>

<pre><code>public boolean checkRecipe(CharSequence recipename) throws SQLException 
    {
        Cursor checkRecursor=rDb.query(true, DATABASE_TABLE, new String[]{KEY_TITLE}, 
                KEY_TITLE+"="+recipename, null, null, null, null, null);
        if(checkRecursor!=null)
            return true;
        else
            return false;
    }
</code></pre>

<p>I'm trying to check whether a given entry is present in the table or not.  </p>
