I'd use parenthesis around the `format == u'overlay'`, but this is purely stylistic.