Modifies if to only take Boolean values