If you have an index.php with a loop such as:
if(have_posts()){
while(have_posts()){
the_post();
}
}
And nothing is returned, you would generally do a:
if(have_posts()){
while(have_posts()){
the_post();
}
}else{
//display message
}
However, what if you have a 404.php? Will that page be displayed if nothing is returned in terms of the loop (assuming I have not written the else part of the loop)?