public static function haveProducts($id) { return ProductToCategory::where('category_id', $id)->find_one() !== false; }