make sure sections is defined before checking for path