I think it's not correct as && takes precedence over ||, see #7895