Fixing PHP warning when no custom fields are set up