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