Change way we check whether the frequency is a single value or an array