Check for content before iteration getSubLinks.py