title: Magento code need precision
body: <p>I'm currently checking a Magento extension and I have a slight doubt about a piece of code. I would like you to explain. I understand all of it but not this one : </p>
  
  <pre><code>$customerID == " "
  </code></pre>
  
  <p>Is there a case where Magento have a customer id like that ( a space?) ?
  Thanks a lot for your reply !
  Here the entire function.</p>
  
  <pre><code>public function isAvailable(Varien_Event_Observer $observer)
  {
  
      $event           = $observer-&gt;getEvent();
      $method          = $event-&gt;getMethodInstance(); //$method return the payment method
      $result          = $event-&gt;getResult();         //$result return true if method is active
      $quote           = $event-&gt;getQuote();          //$quote return var from cart
      if($method-&gt;getCode() == 'custompayment' ){
          //$customerGroup        = $quote-&gt;getCustomerGroupId();
          // $customerGroup="";
          // $customerID="";
           $login = Mage::getSingleton( 'customer/session' )-&gt;isLoggedIn(); //Check if User is Logged In
      if($login)
      {
          $customerGroup = Mage::getSingleton('customer/session')-&gt;getCustomerGroupId(); //Get Customers Group ID
          $customerID = Mage::getSingleton('customer/session')-&gt;getCustomerId(); //Get Customers ID
  
      }
          $selectedCustomerGroups =   Mage::getStoreConfig('payment/custompayment/specificcustomers');
          $selectedCustomerGroupsArray = explode(",", $selectedCustomerGroups);
              if($selectedCustomerGroups != "" || $customerID == " "){
                  if(!in_array($customerGroup, $selectedCustomerGroupsArray)) {
                              $result-&gt;isAvailable = false;
                      } 
  
              }
              else{
                 if($result-&gt;isAvailable==1){
                      $result-&gt;isAvailable = true;
                  }
              }
  
      }
  </code></pre>