I am looking at the implementation of \Magento\Sales\Api\OrderRepositoryInterface on https://github.com/magento/magento2/blob/eacac63d35b97961e3304dc007cd6b78519a93d0/app/code/Magento/Sales/Model/OrderRepository.php
According to the code, the repository will throw NoSuchEntityException if the order does not exist. However, I figure it might be expensive overtime to rely on a try-catch statement if my function gets called quite often.
Is there a command/function that I can use to just get true/false on whether an order exist by given Order ID?
Thank you,