Avoid conditional assignment in variable declarations

any() already returns a boolean, just assign it directly