Replaced condition and a false returning

The code gets more simple.