Checking argument type which must be an array

The $extracurl parameter needs to be an array with valid curl options to
be used later if needed.

But no check was made about its type. From now on we force its type to
be an array when passes as an argument
Merge pull request #57 from cyberkurumin/master

Checking argument type which must be an array