Fix formatting, rename `hasQueue` var