Karthik is right. This only checks if there are some rows in the table or not. It has the same effect as:
if exists(select * from table)
The author of that query just tried to be smart and optimize it by only selecting one row. But this is actually not needed because in both cases the query plan is exactly the same.