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) {
$sets = entity_load_multiple('shortcut');
foreach ($sets as $id => $set) {
if ($set->label == $title) {
return TRUE;
}
}
return FALSE;
}