what is wrong with this foreach, it came with the theme but always comes up with error invalid argument, I don't do code so don't know if its a missing bit of code or missing table or what, its in the theme Helper/Data.php
public function getType(Mage_Catalog_Model_Product $product)
{
if ('Mage_Catalog_Model_Product' != get_class($product) )
return;
foreach ($product->getOptionsType as $o) {
$optionType = $o['type'];
if ($optionType == 'file') {
return true;
}
}
return false;
}