This should appear outside `if ($rs)`