Determines whether a specified layer is frozen.
Returns true if the layer is frozen, otherwise returns false.