Fix for PHP warning in case of no $current term