What does a product that is not found return in terms of Object?
I'm loading a product like the following:
$man_collection = Mage::getModel('catalog/category')
->load($mProduct)
->getProductCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('status', 1)
->addAttributeToFilter('visibility', 4)
// ->getSelect()->limit(1);
->addFieldToFilter(array(
array('attribute' => 'color', 'eq' => '1049')
));
Assuming that this specific product with this color code 1049 does not exist in the database, how can I validate it? If I try
gettype($man_collection)
it still returns Object. So is there a way to validate this? Like "if product with color code 1049 found proceed, else echo not found"