Add check that $options is an array