Is it possible to write "return" function inside a conditional operator? If yes please inform me how is it possible.