removed reference to non-existing file
empty() instead of size()