protected function isSoftSmall($value)
    {
        if (!is_scalar($value) || $value === null) {
            return false;
        }
        
        $value = (float) $value;
        
        return $value >= 0 && $value <= 9;
    }
protected function isSoftSmall($value)
    {
        if (!is_scalar($value) || $value === null) {
            return false;
        }
        
        $value = (float) $value;
        
        return $value >= 0 && $value <= 9;
    }
protected function isSoftSmall ( $ value ) { if ( ! is_scalar ( $ value ) || $ value === null ) { return false ; } $ value = ( float ) $ value ; return $ value >= 0 && $ value <= 9 ; }
Returns true if the value is between 0 and 9

@param *scalar $value Value to test

@return bool
Returns true if the value is between 0 and 9