The five lines above can be shortened to:
`return $hash === $this->hash($password, $hash);`