bump version to 0.1.1
use instanceof to check if result is an array