This looks like it should work, strip back to one condition, then test, once you know it's working, add another. Until you can verify what is or isn't working.