should this also be:
    <% if @user && @user.coop == @coop %>