Chest animation

Player Chest/EnderChest Animations (Open/Close) to nearby players, Works as intended, can only open if chest is closed, can only close when player closes out of storage inventory. 
Shouldnt this be returning player.getEnderChest() ?