I find it really hard to read this inverted logic.  Can we make it taskResource == null and invert the options below?