Enough to do ``if (count($selected)) {``