Add check for $_GET['products_id']
Minor optimizations