Try to avoid negative conditions in an if - write as if (configuration.minDate) {...}