I am using the code below to get the orders when filtering using email address of the logged in user.
$order = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId()) ->setOrder('created_at', 'desc'); return $order;
But if the user has not placed an order at all then $order should be NULL value or empty value right? but I am not getting an empty value which I found out after using
I need empty or null value so that I can display a notification to the customer to tell him that he has not ordered anything. if there is a way to get NULL value then please explain.