I retrieve a laravel collection from a database on which I want to update certain values based on three calculations. But before I do the calculations I first check if all