Implement a safe_root check