Add IsFileAllowed method