Magento Product object and loadByAttribute

Hi Folks,

A little note to work with product object in Magento:

/**
 * Using setStoreId two times, otherwise it will save the data to default store
 */
$product = Mage::getModel('catalog/product')
    ->setStoreId($storeId)
    ->loadByAttribute('ean', $ean)
    ->setStoreId($storeId);