Ma chi è che ha scritto quella funzione? Non ha senso avere come tipo restituito Long e restituire un booleano...