John Foley possible connection to Mahoney family

I have a photo of John Foley from my GGrandfather's album. It is in an area of pics set aside for the Mahoney family photos but there may be no connection at all.There is no DOB however the photo is of a young man in a WWI sailors's uniform with pancake hat. He appears to be between 18 and 25 years of age.Is there is a Mahoney family connection among any Foleys here?Location would be New York or New Jersey or on a long shot, Maine or Mass.