public static boolean hasBinding(Injector injector,Key<?> key){
  Binding<?> binding=getBinding(injector,key);
  return binding != null;
}

public static boolean hasBinding ( Injector injector , Key < ? > key ) { Binding < ? > binding = getBinding ( injector , key ) ; return binding != null ; }
returns true if a binding exists for the given key
