Removed warnings by assigning to bool