private static function checkArrayLength(array $array) { if (0 == count($array)) { throw InvalidArgumentException::arrayCantBeEmpty(); } }