Use empty() to avoid warnings if it doesn't exist