Get a list of tags present in a paged front page

$filtros = array(); will always returns null, meaning it’s an empty array.

To make your code works, you can try :

   $filtros[] = $tag->name;

instead of array_push(),

Hope it works after!