public function isValidOrderKey($key) { if (in_array($key, $this->validOrderKeys)) { return true; } return false; }