Fixed if condition

Options.macros is an object not an array. Can't use .length property