I'll change this to three separate functions, each will hold one of the main OR elements of this statement. It won't be the smallest solution but probably the most readable.