I\'m including a custom.css file in my template to allow site owners to add their own css rules. However, when I ship the file, its empty and there\'s no sense loading it if
Everybody be carefull when using filesize, cause it's results are cached for better performance. So if you need better precision, it is recommended to use something like:
clearstatcache();
if(filesize($path_to_your_file)) {
// your file is not empty
}