functions: minor bkd() fix: lets avoid a possible error if $3 is empty