Adding method to BuyOrder model to determine whether entity can be deleted.