Fix a little bug. Add check on val of verify method for null check.