private function isHeadValid() : bool
    {
        try {
            $cmd    = new GetCommitHash($this->repo->getRoot());
            $result = $this->runner->run($cmd);
            return $result->isSuccessful();
        } catch (RuntimeException $e) {
            return false;
        }
    }
private function isHeadValid() : bool
    {
        try {
            $cmd    = new GetCommitHash($this->repo->getRoot());
            $result = $this->runner->run($cmd);
            return $result->isSuccessful();
        } catch (RuntimeException $e) {
            return false;
        }
    }
private function isHeadValid ( ) : bool { try { $ cmd = new GetCommitHash ( $ this -> repo -> getRoot ( ) ) ; $ result = $ this -> runner -> run ( $ cmd ) ; return $ result -> isSuccessful ( ) ; } catch ( RuntimeException $ e ) { return false ; } }
Check head validity.

@return bool
Check head validity .