working on loop returning a boolean value

added return to function still not returning a value from loop