Twig\Error\RuntimeError thrown

Key "id" does not exist as the array is empty.