/**
  * Executes the pop logic.
  *
  * @param NodeInterface $node The node to pop data from.
  * @return mixed
  */
 protected function executePop(NodeInterface $node)
 {
     $arrayValue = $node->getValue();
     $poppedValue = array_pop($arrayValue);
     $node->setValue($arrayValue);
     return $poppedValue;
 }
 /**
  * Executes the push logic.
  *
  * @param NodeInterface $node The node to push data to.
  * @param mixed $value The value to push.
  */
 protected function executePush(NodeInterface $node, $value)
 {
     $arrayValue = $node->getValue();
     $arrayValue[] = $value;
     $node->setValue($arrayValue);
 }