change pop_head function

add a return of empty status