Prevent PHP error if getNextPrevNews returns a boolean