$table = Doctrine::getTable(ucfirst(strtolower($record))); $recordObject = $table -> find(intval($recordId)); return $recordObject ? true : false;