Update bootstrap.php

Add a control on line 317 to prevent PHP warning