Added additional check for opts before doing instanceof check
Bump version to 0.2.4