ERROR: LoadError: syntax: invalid identifier name "&&"

I’m not exactly sure how it tried to parse it but the problem is almost certainly with :, where you probably want if instead.