Only navigate to an href if it exists