private static function splitFriendlyEmail($email)
    {
        if (false !== strpos($email, '<')) {
            return array_map('trim', explode(' <', str_replace('>', '', $email)));
        } elseif (false !== strpos($email, '[')) {
            return array_map('trim', explode(' [', str_replace(']', '', $email)));
        } else {
            return ['', $email];
        }
    }