check if yield if empty before converting to float