protected function checkForProtected(array $data)
    {
        foreach (array_keys($data) as $key) {

            if ($this->isProtected($key)) {

                throw new \UnexpectedValueException("Cannot set value in protected '$key' index");
            }
        }
    }