#!/usr/bin/env php 🧨 Trying to get property 'categories' of non-object