Simplify condition

Change-Id: Ie67c897517167163d79fee613ce954a372810166
diff --git a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/grouphandler/PolicyGroupHandler.java b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/grouphandler/PolicyGroupHandler.java
index c7ce295..c313d39 100644
--- a/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/grouphandler/PolicyGroupHandler.java
+++ b/apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/grouphandler/PolicyGroupHandler.java
@@ -15,6 +15,7 @@
  */
 package org.onosproject.segmentrouting.grouphandler;
 
+import static com.google.common.base.Preconditions.checkArgument;
 import static org.slf4j.LoggerFactory.getLogger;
 
 import java.util.ArrayList;
@@ -322,9 +323,7 @@
     }
 
     public void removeGroupChain(PolicyGroupIdentifier key) {
-        if (!(key instanceof PolicyGroupIdentifier)) {
-            throw new IllegalArgumentException();
-        }
+        checkArgument(key != null);
         List<PolicyGroupIdentifier> groupsToBeDeleted =
                 new ArrayList<PolicyGroupIdentifier>();
         groupsToBeDeleted.add(key);