redirect the book if there's only one link by clicking the book cover

what happens to the book if there is no data for $book['link_id']?
try: 
`echo ($book['link_id']?$book['link_id']:'#');`