public function getValue(AttributeInterface $attribute, array $context = null)
    {
        $values = $this->getValues($attribute, $context);

        return 0 === \count($values) ? null : $values->first();
    }