/** * Create a new series * * @param array $post * @param array $authorsAllowed * @return bool */ protected function processNewSeries(array $post = [], array $authorsAllowed = []) : bool { if (!\Airship\all_keys_exist(['author', 'items'], $post)) { return false; } if (!\in_array($post['author'], $authorsAllowed)) { return false; } return $this->blog->createSeries($post); }