check expire value is null or empty.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>