can you know if someone has blocked you?
No. There's no definitive way to determine that you've been blocked; for instance, you're not going to get a notification or see an indicator in that person's contact info. That would infringe on the privacy of the other user.