protected function isVAinArray($key, $vaArray) { foreach ($vaArray as $index => $row) { if ($row[0] == $key) { return $index; } } return false; }