getTable(); $sql = "SELECT id FROM ".$table->getTableName()." WHERE ".$key." = ?"; $stmt = $table->getSession()->getDBH()->prepare($sql); $stmt->execute(array($value)); return ( ! is_array($stmt->fetch())); } } ?>