Remove else statement by overwriting the file array key