Check if post exists before favorite.
Remove repeated condition.