public static function getFirstNonEmptyElement($list, $default = null)
    {
        foreach ($list as $item) {
            if (empty($item) === false) {
                return $item;
            }
        }
        return $default;
    }