public static function selected($haystack, $current)
{
if (is_array($haystack)) {
if (in_array($current, $haystack)) {
$current = $haystack = 1;
return selected($haystack, $current, false);
}
return false;
}
return selected($haystack, $current, false);
}