protected function validatePosition($position)
{
if (!in_array($position, $this->positions, true)) {
throw new InvalidArgumentException(sprintf('The position "%s" does not exist (available positions: %s).', $position, implode(', ', $this->positions)));
}
}