Fixing bugs reported by scrutinizer ('The class Fetch\Exception does not exist' and 'It seems like  can also be type ; however,  does only seem to accept , maybe add an additional type check?').