Added an helper function to get the order status, also use the new WooCommerce order has_status function.