check if $page['tags'] is an array before looping

Should fix Issue #1