Would getenv('APP_ENV') || 'development' be better? Or even work for that matter.