code: public function hasBinding($type, $name = null)
      {
          if (PropertyBinding::TYPE === $type) {
              return $this->hasProperty($name);
          }
  
          return ($this->findBinding($type, $name) != null);
      }
docs: check whether a binding for a type is available (explicit and implicit)
  
  @api
  @param   string   $type
  @param   string   $name
  @return  boolean