boolean if works