public static function areKeysInArray(array $keys, array $array, $explicit = true)
    {
        $result = false;

        if (!empty($array)) {
            $firstKey = true;

            foreach ($keys as $key) {
                $exists = array_key_exists($key, $array);

                if ($firstKey) {
                    $result = $exists;
                    $firstKey = false;
                } elseif ($explicit) {
                    $result = $result && $exists;

                    if (!$result) {
                        break;
                    }
                } else {
                    $result = $result || $exists;

                    if ($result) {
                        break;
                    }
                }
            }
        }

        return $result;
    }