public function validate($inputs)
    {
        if (empty($this->rules)) {
            throw new \RuntimeException('You must set rules for validator.');
            return false;
        }

        if (empty($inputs)) {
            throw new \RuntimeException('Empty array passed to validate method');
        }

        $this->validator($inputs)->addRule();

        if (!$this->run()) {
            $this->setErrors($this->validation->getErrors());

            return false;
        }

        return true;
    }