Similar scala boolean value