Adding condition of !empty.Please check.