Check if listFiles does not return a null.