checks for empty redirect to