Added if [] is file.