check for title variable, avoid access file directly

Signed-off-by: Eduardo Stuart <stuart.eduardo@gmail.com>