Merged to if checks into one