Ensure classes property can't be null