adding if (array_key_exists('tags',)) into picotags.php