private function removeLastSlash($string)
    {
        if ('/' === substr($string, strlen($string) - 1)) {
            $string = substr($string, 0, strlen($string) - 1);
        }
        
        return $string;
    }