It is better to use booleans in this case, isn't it?