redirect back to the collection if pycortex is called and collection is empty

for some reason /pycortex links are still being requested (for empty collections) even though I disabled the button