private function getEmail($email, $name = null)
    {
        if (!$email) {
            return null;
        }

        if (!$name) {
            $name = $email;
        }

        return [$email => $name];
    }
private function getEmail($email, $name = null)
    {
        if (!$email) {
            return null;
        }

        if (!$name) {
            $name = $email;
        }

        return [$email => $name];
    }
private function getEmail ( $ email , $ name = null ) { if ( ! $ email ) { return null ; } if ( ! $ name ) { $ name = $ email ; } return [ $ email => $ name ] ; }
Get email.

@param string $email
@param string $name

@return array|null
Get email .