Extend gallery module with order
Check $options with is_array()