Im tring to show image1.png if it exists, else show image2.png
<?php
$image1 = images/image1.png;
$image2 = images/image2.png;
if ( $image1 < true ) {
echo "$image1";
} else {
echo "$image2";
}
?>
I am getting a Warning: Division by zero
Thank you