Filter by buddypress components error

Hi, I need filter by buddypress components and I have noted that "members" and "register" are the same. Also I tried to filter by page ID, but not work.

The example codes that not work are:

function example(){
if ((bp_current_component('register')){
echo 'hello';
}else if ((bp_current_component('members')){
echo 'bye';
}
}

The full code I need to use is with the genesis theme:

add_filter( 'genesis_pre_get_option_site_layout', 'full_width_layout_registro' );
function full_width_layout_registro($opt) {
    if (bp_is_user()){
    	$opt = 'content-sidebar';
      return $opt;
    }else if ( (bp_current_component('members'))){
    	$opt = 'content-sidebar';
      return $opt;
    }else if (bp_current_component('register') ){
    	$opt = 'full-width-content';
      return $opt;
    }
}