protected function ensure(array &$source, string $key)
    {
        if (!isset($source[$key]) || !$source[$key]) {
            throw new \Caridea\Auth\Exception\MissingCredentials();
        }
        return $source[$key];
    }
protected function ensure(array &$source, string $key)
    {
        if (!isset($source[$key]) || !$source[$key]) {
            throw new \Caridea\Auth\Exception\MissingCredentials();
        }
        return $source[$key];
    }
protected function ensure ( array & $ source , string $ key ) { if ( ! isset ( $ source [ $ key ] ) || ! $ source [ $ key ] ) { throw new \ Caridea \ Auth \ Exception \ MissingCredentials ( ) ; } return $ source [ $ key ] ; }
Throws a `MissingCredentials` if the value is empty.

@param array $source The params array
@param string $key The array offset
@return mixed Returns the value of `$source[$key]`
@throws \Caridea\Auth\Exception\MissingCredentials If `$source[$key]` is empty
Throws a MissingCredentials if the value is empty .