added function that returns boolean for given filename