try this
if ($_FILES['file']['error'] != 0) {
//no file or error
} else {
//hey im uploading here
}
Okay basically 0 means the file is uploaded and no errors.
Here is a list from PHP Manual About errors
UPLOAD_ERR_INI_SIZE
Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.
UPLOAD_ERR_FORM_SIZE
Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the html form.
UPLOAD_ERR_PARTIAL
Value: 3; The uploaded file was only partially uploaded.
UPLOAD_ERR_NO_FILE
Value: 4; No file was uploaded.