Checking if file is not null