Continuing this - Remove Search Box for non-logged-in-users

Started a thread here on this
https://premium.wpmudev.org/forums/topic/remove-search-boxes-for-non-logged-in-users

Opening a new thread. Hopefully this will keep things clear.

I started with help in chat on this and now continuing here in the forums.

Still trying to disallow the not logged in folks from accessing the buddypress search as this is only a service I want only logged in users to access.

I changed sidebar-bphome.php line 62
from this
<?php if ( bp_search_form_enabled() ) : ?>

to this
<?php if ( bp_search_form_enabled() && is_user_logged_in() ) : ?>

I still see the search box. Image attached.

This is bp-daily 3.9.6 and buddypress 1.2.7