app\models\Invoice::isPaid PHP Метод