issue #37, added check if no tags exist

@hishamelgezeery can you please check this request and merge it ?! I forgot to add a condition if there are no tags in the Tag table.