Is there any reason for that line ? If yes, remove the entire if which is now useless