don't echo result if undefined/null