Make import return boolean value depending on the result