Shouldn't this be elseif ? when line 65 evaluates to false (no error) it will continue to this point and will create the bootstrap again.