diff --git a/product/ERP5Type/patches/PythonScript.py b/product/ERP5Type/patches/PythonScript.py
index 64b080e7e9f8b0c74a3a77c0e7df3f32f8015716..38d9c223bcdff2984625d60bbfac6068f76b8945 100644
--- a/product/ERP5Type/patches/PythonScript.py
+++ b/product/ERP5Type/patches/PythonScript.py
@@ -17,10 +17,7 @@ from App.ImageFile import ImageFile
 
 def haveProxyRole(self):
   """if a script has proxy role, return True"""
-  if self._proxy_roles:
-    return True
-  return False
-
+  return bool(self._proxy_roles)
 
 def om_icons(self):
   """Return a list of icon URLs to be displayed by an ObjectManager"""