Change unnecessary bool=true check