This is very hard to read like this. It should be really be properly grouped instead of repeating the conditions.