Check to see if a shortcut set with the given title already exists.
$title: Human-readable name of the shortcut set to check.
TRUE if a shortcut set with that title exists; FALSE otherwise.
function shortcut_set_title_exists($title) {
return (bool) db_query_range('SELECT 1 FROM {shortcut_set} WHERE title = :title', 0, 1, array(
':title' => $title,
))
->fetchField();
}