how can i make my program check if a link not broken down?