Ye. That's more scala way of doing this thing. Will keep that in mind.