private function getIndexFromArguments($methodArguments) { $index = ''; if (isset($methodArguments[1]) && is_numeric($methodArguments[1])) { $index = $methodArguments[1]; } return $index; }