check for null for app.custom