@ boerup
It is this line:
if ( $atts['enable_bio'] && $entry->getBio() != '' ) {
You need to move the corresponding } to after this line:
}
echo $entry->getBioBlock();