add IsLock method
Merge pull request #55 from Astro03/master

add IsLock method