fragment_name function can not check a method in case the value is null