Updated the bool template to handle non-nullable