Use empty() to check if extension is enabled