images.first was returning nil, so I used an if instead of ||