Minify
Small refactor of is_visible

Also returns false for non-published products and fixes #5955