code: public function validateOptions(array $options)
      {
          foreach ($options as $option => $value)
          {
              if (!in_array($option, $this->allowedOptions))
                  throw new InvalidOptionException("Option [$option] is not valid");
          }
  
          return $this;
      }
docs: Validate the given options with the allowed options
  
  @param array $options  Options array to get validated
  
  @return Mookofe\Tail\BaseOptions